package Day08_20;

public class Thread02 extends Thread {
    Object o1;
    Object o2;

    public Thread02(Object o1, Object o2) {
        this.o1 = o1;
        this.o2 = o2;
    }

    public Thread02() {
    }

    public void run() {
        synchronized (o2){
            try {
                Thread.currentThread().sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            synchronized (o1){

            }
        }

    }
}
